package com.diary.server.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.time.LocalDateTime;

@Data
@TableName("diary_list")
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class DiaryList implements Serializable {
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @Schema(description = "标题")
    private String title;
    @Schema(description = "内容")

    private String content;
    @Schema(description = "日记时间")

    private LocalDateTime recordTime;
    @Schema(description = "用户id")

    private Long userId;
    @Schema(description = "图片列表")

    private String imgs;
    @Schema(description = "心情")
    private String mood;
    @Schema(description = "文本类型 0：常规 1：markdown" )
    private String textType;
}
